package com.travel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.travel.pojo.ScenicSpot;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface HomePageMapper extends BaseMapper<ScenicSpot> {
//    链接城市表和景点表将每个景点所在城市查询出来
    List<ScenicSpot> listBySName();
    boolean insertImg(@Param("name") String name,@Param("cityID") int id,@Param("imgPath") byte[] imgPath);
}
